﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="@Url.Content("~/plugin/css/pikaday.css")">
<link rel="stylesheet" href="@Url.Content("~/plugin/css/site.css")">
<script src="@Url.Content("~/plugin/moment.min.js")"></script>
<script src="@Url.Content("~/plugin/pikaday.js")"></script>

@model PessModel.GradeRule

@{
    ViewBag.Title = "Create";
}

<div id="m-title">
    <h2>创建等第规则</h2>
    <div id="m-op">
        @Html.ActionLink("返回学科等第规则详细", "Details", "GradeRule", new { subjectID = ViewBag.SubjectID }, null)
    </div>
</div>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <fieldset class="edit">
        <p>@Html.ValidationSummary(true, "", new { @class = "text-danger" })</p>
        @Html.Hidden("SubjectID", (int)ViewBag.SubjectID)

        <div class="m-inline">
            <span>
                名&emsp;&emsp;称&emsp;
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.TextBoxFor(model => model.Name, new { @class = "f-it-long"})
            @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
        </div>
        <div class="m-inline">
            <span style="display:inline-block;vertical-align:top;">
                说&emsp;&emsp;明
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            &emsp;@Html.EditorFor(model => model.Description, new { @class = "f-it-long" })
            @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
        </div>
        <div class="m-inline">
            <span>
                占百分比&emsp;
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.TextBoxFor(model => model.Percentage, new { @class = "f-it-long"})
            @Html.ValidationMessageFor(model => model.Percentage, "", new { @class = "text-danger" })
        </div>
        <div class="m-inline">
            <span>
                分值上限&emsp;
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.EditorFor(model => model.Ceiling, new { @class = "f-it-long" })
            @Html.ValidationMessageFor(model => model.Ceiling, "", new { @class = "text-danger" })
        </div>
        <div class="m-inline">
            <span>
                分值下限&emsp;
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.EditorFor(model => model.Floor, new { @class = "f-it-long" })
            @Html.ValidationMessageFor(model => model.Floor, "", new { @class = "text-danger" })
        </div>

        <div class="m-inline">
            <span>
                是否检验&emsp;
                @*@PessResources.Archive.ProjectTitle*@
                @*@ViewBag.ArchiveProjectTitleDisplayName：*@
            </span>
            @Html.EditorFor(model => model.ValidationRequired, new { @class = "f-it-long" })
            @Html.ValidationMessageFor(model => model.ValidationRequired, "", new { @class = "text-danger" })
        </div>
        <div class="m-inline f-ta-lt">
            <input type="submit" value="新建" class="u-btn u-btn-save2" />
        </div>
     </fieldset>

}
